package com.sugar.real.estate.module.business.controller.admin.userbuildingconsult.vo;

import com.sugar.real.estate.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.sugar.real.estate.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户楼盘咨询分页 Request VO")
@Data
public class UserBuildingConsultPageReqVO extends PageParam {

    @Schema(description = "用户ID", example = "2936")
    private Long userId;

    @Schema(description = "楼盘ID", example = "20477")
    private Long followId;

    @Schema(description = "咨询的类型（0公寓 1现房 2建房 3设计方案）", example = "1")
    private Integer type;

    @Schema(description = "姓名", example = "王五")
    private String name;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}